body {
  margin: 0px;
  overflow: hidden;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

noscript {
  display: block;
  text-align: center;
  padding-top: 100px;
  font-size: 20px;
}

.v3d-container {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
}

.fullscreen-button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  background-size: 100% 100%;
  display: none;
  z-index: 1;
}

.fullscreen-open {
  background-image: url("media/fullscreen_open.svg");
}

.fullscreen-close {
  background-image: url("media/fullscreen_close.svg");
}

/* SimplePreloader logo */
 .v3d-simple-preloader-logo {
   background-image: url("media/simple_preloader_logo.svg");
 }
 
 .v3d-simple-preloader-bar {
   background: linear-gradient(90deg, #ffffff, #3a37eb);
   height: 5px;
   border-color: #1458ae;
 }

/* 左上角文本说明区域 - 包豪斯风格 */
#product-info {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 9999;
  color: #333;
  max-width: 325px;
}

#product-info h1 {
  font-size: 36px;
  font-weight: 300;
  margin: 0 0 10px 0;
  letter-spacing: -1px;
  text-transform: uppercase;
}

#product-info p {
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 10px 0;
  font-weight: 300;
}

/* 材质切换控制面板 */
#material-controls {
  position: absolute;
  bottom: 30px;
  left: 30px;
  z-index: 9999;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-width: 300px;
}

.control-group {
  margin-bottom: 20px;
}

.control-group h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #555;
}

.material-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.material-button {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background-color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 100px;
  text-align: center;
}

.material-button:hover {
  background-color: #f5f5f5;
  border-color: #ccc;
}

.material-button.active {
  background-color: #333;
  color: #fff;
  border-color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
  #product-info {
    top: 12px;
    left: 12px;
    right: 12px;
    max-width: none;
  }

  #product-info h1 {
    font-size: 20px;
    margin: 0 0 4px 0;
  }

  #product-info p {
    font-size: 12px;
    line-height: 1.3;
    margin: 0 0 4px 0;
  }

  /* 材质面板：底部居中 + 折叠模式 */
  #material-controls {
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    min-width: auto;
    width: calc(100% - 24px);
    max-width: 420px;
    padding: 12px 14px;
    border-radius: 8px;
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.3s ease;
  }

  #material-controls.is-collapsed {
    max-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  #material-controls.is-collapsed .control-group {
    display: none;
  }

  .control-group {
    margin-bottom: 10px;
  }

  .control-group:last-child {
    margin-bottom: 0;
  }

  .control-group h3 {
    font-size: 12px;
    margin: 0 0 6px 0;
    letter-spacing: 0.5px;
  }

  .material-buttons {
    gap: 6px;
  }

  .material-button {
    min-width: auto;
    flex: 1 1 auto;
    font-size: 12px;
    padding: 6px 10px;
  }

  /* 折叠按钮 */
  #panel-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
    margin-bottom: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    pointer-events: auto;
    transition: margin-bottom 0.3s ease;
  }

  #material-controls:not(.is-collapsed) #panel-toggle {
    margin-bottom: 10px;
  }

  #panel-toggle .toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 10px;
  }

  #material-controls.is-collapsed #panel-toggle .toggle-icon {
    transform: rotate(180deg);
  }
}

/* 桌面端隐藏折叠按钮 */
@media (min-width: 769px) {
  #panel-toggle { display: none; }
}

/* removes tap blinking on ios devices */
* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
